import staticRoutes from './static'
import Layout from '@/layouts/index.vue'

import type { RouteRecordRaw } from 'vue-router'

let routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'layout',
    component: Layout,
    redirect: '/home',
    children: [
      {
        path: 'test',
        name: '测试文件',
        component: () => import('@/views/test/index.vue'),
      },
      //   生成二维码
      {
        path: '/scattered/qrcode',
        name: 'qrcode',
        component: () => import('@/scattered/qrcode/index.vue'),
      },
    ],
  },
  ...staticRoutes,
]

export default routes
